print ('{0},{1}'.format('kzc',18))

print ('{},{}'.format('kzc',18))
print ('{1},{0},{1}'.format('kzc',18))

print ('{name},{age}'.format(age=18,name='kzc') )


#格式限定符:
#^、<、>分别是居中、左对齐、右对齐，后面带宽度
print ('{:>8}'.format('189'))

print ('{:0>8}'.format('189'))

print ('{:a>8}'.format('189'))

print ('{:.2f}'.format(321.33345))

print ('{:b}'.format(17))

print ('{:d}'.format(17))

print ('{:o}'.format(17))

print ('{:x}'.format(17))

print ('{:,}'.format(1234567890))
